Skip to content

feat: test retry ui#764

Merged
sonic16x merged 2 commits into
masterfrom
add-test-retry-ui
May 20, 2026
Merged

feat: test retry ui#764
sonic16x merged 2 commits into
masterfrom
add-test-retry-ui

Conversation

@sonic16x

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown

✅ Component tests succeed

Report

@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown

✅ E2E tests succeed

Report

@sonic16x sonic16x force-pushed the add-test-retry-ui branch 3 times, most recently from e495cce to 3efd9c9 Compare April 21, 2026 17:29
@pkg-pr-new

pkg-pr-new Bot commented Apr 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/html-reporter@764

commit: d5aab1d

@sonic16x sonic16x force-pushed the add-test-retry-ui branch 4 times, most recently from 2caeb8d to 0d8068b Compare April 22, 2026 08:10
@sonic16x sonic16x requested a review from shadowusr April 22, 2026 08:11
@sonic16x sonic16x force-pushed the add-test-retry-ui branch 8 times, most recently from cd1c4c4 to 0323b05 Compare April 23, 2026 08:23
@shadowusr

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0323b05899

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lib/gui/server.ts Outdated
Comment on lines +167 to +168
for (let i = 0; i < repeatCount; i++) {
await app.run(tests, {retry: repeatCount === 1});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore non-blocking response for /run

The /run handler now awaits every app.run call before returning 200, which turns this endpoint into a long-lived request for the full test duration (and for all repeats). In environments with request timeouts (browser/network/proxy), this can cause the request to be aborted or retried while tests are still executing, leading to duplicate runs or flaky UI behavior; the previous contract in this handler was explicitly fire-and-forget.

Useful? React with 👍 / 👎.

const repeatCount = useSelector((state) => state.repeatCount);

const changeRepeatCount = (newValue: number): void => {
if (newValue >= MIN_REPEATER_COUNT && newValue < MAX_REPEATER_COUNT) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3 Badge Permit the declared maximum repeat count

The guard uses newValue < MAX_REPEATER_COUNT, so MAX_REPEATER_COUNT itself (99) is unreachable from both typing and the increment button. This is an off-by-one bug: users can only set up to 98 even though the constant declares 99 as the limit.

Useful? React with 👍 / 👎.

@shadowusr shadowusr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loooks good to me other than that issue with retry button re-enabling between retries.

Comment thread lib/gui/server.ts Outdated
// do not wait for completion so that response does not hang and browser does not restart it by timeout
app.run(req.body);
for (let i = 0; i < repeatCount; i++) {
await app.run(tests, {retry: repeatCount === 1});

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does passing retry change?

Also, the comments in code above and codex's are valid IMO. I've tried running slower tests on a large project and the request takes minutes to complete. I'm afraid it will timeout if I tried to run more tests.

⚠️ Another important issue I've noticed is that the retry button becomes active again after one retry is finished and we are waiting for a session, which is quite misleading, especially when getting a new session takes a while.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed both problems

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

retry need for disable retry for repeat mode

@sonic16x sonic16x force-pushed the add-test-retry-ui branch from 0323b05 to d5aab1d Compare May 19, 2026 19:15
@sonic16x sonic16x merged commit b293726 into master May 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants